home *** CD-ROM | disk | FTP | other *** search
/ PC Format (PL) 2013 August / PC_Format_082013.iso / pene wersje / website x5 home 10 / wsx5_home.exe / {app} / Res / Admin / header.php < prev    next >
PHP Script  |  2013-05-24  |  2KB  |  45 lines

  1. <?php
  2. require_once "../res/x5engine.php";
  3. require_once "../res/l10n.php";
  4. require_once "../res/x5settings.php";
  5. require_once "checkaccess.php";
  6. ?>
  7. <!doctype html>
  8. <html lang="en">
  9. <head>
  10.     <title>WebSite X5 Manager</title>
  11.     <meta charset="UTF-8">
  12.     <title>Document</title>
  13.     <script type="text/javascript" src="../res/jquery.js"></script>
  14.     <script type="text/javascript" src="../res/x5engine.js"></script>
  15.     <script type="text/javascript">x5engine.settings.currentPath = "../";</script>
  16.     <link rel="stylesheet" type="text/css" href="../style/reset.css"/>
  17.     <link rel="stylesheet" type="text/css" href="../style/style.css"/>
  18.     <link rel="stylesheet" type="text/css" href="../style/print.css" media="print"/>
  19.     <link rel="stylesheet" type="text/css" href="template.css"/>
  20.     <style>
  21.     <?php
  22.         // Find the existing star image
  23.         $n = 0;
  24.         while (!file_exists("../images/star0" . ++$n . "-big-empty.png") && $n < 10);
  25.     ?>
  26.         .topic-star-container-big { background-image: url("../images/star0<?php echo $n ?>-big-empty.png")}
  27.         .topic-star-fixer-big  { background-image: url("../images/star0<?php echo $n ?>-big-full.png")}
  28.         .topic-star-container-small { background-image: url("../images/star0<?php echo $n ?>-small-empty.png")}
  29.         .topic-star-fixer-small  { background-image: url("../images/star0<?php echo $n ?>-small-full.png")}
  30.     </style>
  31. </head>
  32. <body>
  33. <?php if (isset($logged) && $logged): ?>
  34.     <div id="imNavBar">
  35. <?php if (isset($imSettings['blog'])): ?>
  36.         <a href="blog.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "blog.php") echo " class=\"active\""; ?>>Blog</a>
  37. <?php endif; ?>
  38. <?php if (isset($imSettings['guestbooks']) && count($imSettings['guestbooks'])): ?>
  39.         <a href="guestbook.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "guestbook.php") echo " class=\"active\""; ?>><?php echo l10n("admin_guestbook", "Guestbook") ?></a>
  40. <?php endif; ?>
  41.         <a href="website_test.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "website_test.php") echo " class=\"active\""; ?>>Test</a>
  42.         <span><a href="login.php?logout"><?php echo l10n("admin_logout", "Logout") ?></a></span>
  43.     </div>
  44. <?php endif; ?>
  45.